let _request = option => uni.$http.create().setConfig({ ...option, showLoading: false }).request()

// 课程分类列表
export const getThesaurusList_api = (data) => _request({ url: '/course/list', data, showLoading: true, })
// 开始词书练习
export const postBookStart_api = (data) => _request({ url: '/thesaurus-exercise/start', data, method: 'post', showLoading: true })
// 单词列表
export const getWordList_api = (data) => _request({ url: '/thesaurus-exercise/vocabularies', data, showLoading: true, })
// 单词列表
export const postWordSpoken_api = (data) => _request({ url: '/thesaurus-exercise-log', data, method: 'post' })
// 提交单词练习
export const postWordAnswer_api = (data) => _request({ url: '/thesaurus-exercise/submit', data, method: 'post', showLoading: true, })
// 查询单词
export const selectWord_api = (data) => _request({ url: '/course-vocabulary/query-dict', data, showLoading: true, })

// 有道密钥
export const getYoudao_api = (data) => _request({ url: '/upload/ies-api-secret', data, showLoading: true, })
// 保存有道评论
export const submitYoudao_api = (data) => _request({ url: '/thesaurus-exercise-log/evaluation', data, method: 'put' })
// 转换格式为wav
export const audiowav_api = (data) => _request({ url: '/upload/audio-muxer', data, method: 'post' })

